/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package PACKAGE_NAME
 * @Description:
 * @Date 2025/5/14 10:57
 */

public class Demo1 {

    public static void main(String[] args) {

        System.out.println(test());
        System.out.println(StaticTest.age);
        StaticTest.play();

    }

    static int test(){
        int a = 2;
        try {
            //1.先去执行try代码块
            //3.执行return
            return a*a;
        }finally {
            //2.再去执行finally代码块
            a++;
            System.out.println(a);
        }
    }
}